package sz.com.postoffice.jxyzwgcase.service.impl;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import sz.com.postoffice.jxyzwgcase.dao.BaseDao;
import sz.com.postoffice.jxyzwgcase.dao.master.EmolumentRuleDao;
import sz.com.postoffice.jxyzwgcase.pojo.EmolumentRule;
import sz.com.postoffice.jxyzwgcase.service.EmolumentRuleService;

import javax.annotation.Resource;
import java.util.List;


/**
 * @ClassName EmolumentRuleServiceImpl
 * @Deacription 薪酬模板处理层
 * @Author jmx
 * @Date 2020/12/3 18:00
 * @Version 1.0
 **/
@Service
@Slf4j
public class EmolumentRuleServiceImpl extends BaseServiceImpl<EmolumentRule> implements EmolumentRuleService {

    @Resource
    private EmolumentRuleDao emolumentRuleDao;
    @Override
    protected BaseDao<EmolumentRule> getMapper() {
        return this.emolumentRuleDao;
    }

    @Override
    public List<EmolumentRule> findByTemplateCode(String templateCode) {
        return emolumentRuleDao.findByTemplateCode(templateCode);
    }
}
